package cn.wh.reflection.factory;

import java.io.Serializable;
import java.util.List;
import java.util.Properties;

/**
 * @Author wh
 * @Description 默认对象工厂 所有的对象都有工厂来生成
 * @Date 2023/1/30 9:11
 * @Version 1.0
 **/
public class DefaultObjectFactory implements ObjectFactory, Serializable {

    private static final long serialVersionUID = -8855120656740914948L;

    @Override
    public void setProperties(Properties properties) {
         // no props for default 默认无属性可设置
    }

    @Override
    public <T> T create(Class<T> type) {
        return null;
    }

    @Override
    public <T> T create(Class<T> type, List<Class<?>> constructorArgTypes, List<Object> constructorArgs) {
        return null;
    }

    @Override
    public <T> boolean isCollection(Class<T> type) {
        return false;
    }
}
